package com.zfx.app;

/*import org.mybatis.spring.annotation.MapperScan;*/
import com.zfx.bean.E;
import com.zfx.bean.F;
import com.zfx.aop.CustomerAopBeanPostProcessor;
import org.springframework.context.annotation.*;

@ComponentScan("com.zfx")
@Configuration //声明为全配置类
//@EnableAspectJAutoProxy // 开启AOP,
@EnableAspectJAutoProxy(proxyTargetClass = false) // proxyTargetClass = true， 强制使用cglib 来生成代理类，否则默认使用Jdk代理
 // @Import(CustomerAopBeanPostProcessor.class) //自定义的bean后置处理器
public class AppConfig {

	@Bean
	public E e(){
		return new E();
	}
	@Bean
	public F f(){
		return new F();
	}

}
